#include <stdio.h>
#include "test_static2.h"
#include "test_static.h"

int main(int argc, char **argv)
{
	Test *p_a = new Test();
	printf("before add:%d\n", p_a->getA());
	p_a->addA();
	printf("after add:%d\n", p_a->getA());
	printf("first time b:%d\n", p_a->getB());
	printf("second time b:%d\n", p_a->getB());

	Test2 *p_a2= new Test2();

	printf("Test2 global:%d\n", p_a2->getGlobal());
	p_a->addGlobal();
	printf("Test2 global after add:%d\n", p_a2->getGlobal());
	delete p_a;
	delete p_a2;
	return 0;
}
